<?php
/*
 * @Author: your name
 * @Date: 2021-11-04 21:33:43
 * @LastEditTime: 2021-11-05 17:04:12
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \property\app\Imports\ExcelImport.php
 */

namespace App\Imports;

// use Illuminate\Support\Collection;
// use Maatwebsite\Excel\Concerns\ToCollection;
use Maatwebsite\Excel\Concerns\ToArray;
class ExcelImport implements ToArray
{


    //重新父类实现
    public function array(array $array)
    {
        // var_dump($array);
        // echo 1;
        // unset($array[0]);

        return $array;



    }

    // public function registerEvents(): array
    // {
    //     return [
    //         BeforeSheet::class => function ( $event) {
    //             $this->sheetNames[] = $event->getSheet()->getDelegate()->getTitle();
    //         }
    //     ];
    // }
}
